package com.nameless.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 统一地区库
 * </p>
 *
 * @author chh
 * @since 2023-02-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="BaseArea对象", description="统一地区库")
public class BaseArea implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "地址ID")
    private Integer baseAreaid;

    @ApiModelProperty(value = "地区名字")
    private String name;

    @ApiModelProperty(value = "上级路径ID")
    private Integer parentid;

    @ApiModelProperty(value = "顺序")
    private Integer vieworder;

    @TableField(exist = false)
    private List<BaseArea> children;
}
